package com.zhongfu.ai.common.exceptions;

import lombok.Data;

/**
 * 业务异常类
 *
 * @author tyd
 */
@Data
public class BusinessException extends RuntimeException {

    private Integer code;
    private String message;

    public BusinessException(Throwable cause, Integer code) {
        super(cause);
        this.code = code;
    }

    public BusinessException(String message) {
        this.message = message;
    }

}
